package com.letoken.platform.repo.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 提现配置
 * </p>
 *
 * @author 作者
 * @since 2022-11-24
 */
@Getter
@Setter
@TableName("admin_withdraw_config")
@ApiModel(value = "AdminWithdrawConfig对象", description = "提现配置")
public class AdminWithdrawConfig extends Model<AdminWithdrawConfig> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("代币id")
    @TableField("token_id")
    private Integer tokenId;

    @ApiModelProperty("最小提现数量")
    @TableField("min_amount")
    private Integer minAmount;

    @ApiModelProperty("最大提现值")
    @TableField("max_amount")
    private Integer maxAmount;

    @ApiModelProperty("提现gas费")
    @TableField("fee_amount")
    private BigDecimal feeAmount;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private LocalDateTime updateTime;



    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
